import request from '@/utils/request'

// 查询Customer列表
export function listCustomer(query) {
  return request({
    url: '/business/Customer/list',
    method: 'get',
    params: query
  })
}

export function selectCustomerList(query) {
  return request({
    url: '/business/Customer/selectlist',
    method: 'get',
    params: query
  })
}



// 查询Customer详细
export function getCustomer(ccuscode) {
  return request({
    url: '/business/Customer/' + ccuscode,
    method: 'get'
  })
}

// 新增Customer
export function addCustomer(data) {
  return request({
    url: '/business/Customer',
    method: 'post',
    data: data
  })
}

// 修改Customer
export function updateCustomer(data) {
  return request({
    url: '/business/Customer',
    method: 'put',
    data: data
  })
}

// 删除Customer
export function delCustomer(ccuscode) {
  return request({
    url: '/business/Customer/' + ccuscode,
    method: 'delete'
  })
}

// 导出Customer
export function exportCustomer(query) {
  return request({
    url: '/business/Customer/export',
    method: 'get',
    params: query
  })
}
